package br.com.map.data;

import java.net.URL;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import br.com.maps.contacts.Contact;
import br.com.maps.contacts.ContactsBuilder;
import br.com.maps.contacts.ExtensionLine;
import br.com.maps.data.DataObtainer;

public class DataObtainerMock implements DataObtainer {

	public List<Contact> obtainData(URL url) {
		Contact c1 = ContactsBuilder.createAContact().withName("Bruno Ortiz").withExtensionLine(Collections.<ExtensionLine> emptyList())
				.buildContact();
		Contact c2 = ContactsBuilder.createAContact().withName("Rafael Ortiz").withExtensionLine(Collections.<ExtensionLine> emptyList())
				.buildContact();
		List<Contact> aList = new ArrayList<Contact>();
		aList.add(c1);
		aList.add(c2);
		return aList;
	}
}
